<template>
  <div>
    <div>{{ son2 }}</div>
    <button @click="son2 += 1">Son2加1</button>
  </div>
</template>

<script>
export default {
  name: "Son2",
  data() {
    return {
      son2: "Son2",
    };
  },
  beforeCreate() {
    console.log("beforeCreate", "son2");
  },
  created() {
    console.log("created", "son2");
  },
  beforeMount() {
    console.log("beforeMount", "son2");
  },
  mounted() {
    console.log("mounted", "son2");
  },
  beforeUpdate() {
    console.log("beforeUpdate", "son2");
  },
  updated() {
    console.log("updated", "son2");
  },
  beforeDestroy() {
    console.log("beforeDestroy", "son2");
  },
  destroyed() {
    console.log('destroyed','son2')
  }
};
</script>

<style lang="scss" scoped></style>
